package test01.demo05;

/**
 * @author CSY
 * @date 2025 - 04 - 09
 */
public class MainTest {
    public static void main(String[] args) {
        Student s = new Student();
        s.setName("张三");
        s.setGrade(Grade.A);
        System.out.println(s);

        System.out.println(Grade.PI);

        //获取枚举类对象
        Grade grade = s.getGrade();
        grade.sayHello();

        System.out.println(grade.getScoreRange());
    }
}
